<template>
    <Grid-View :cols="3" :lineSpace="15" :v-margin="20" v-if="categorysubdata.list">
      <div class="TabContentCategory-item" v-for="(item, i) in categorysubdata.list" :key="i">
          <a :href="item.link">
              <img class="item-img" :src="item.image" alt="分类商品图片">
              <div class="item-text">{{ item.title }}</div>
          </a>
      </div>
    </Grid-View>
</template>

<script>
// components/common/
import GridView from 'components/common/gridView/GridView'
export default {
    name: 'TabContentCategory',
    components: {
        GridView,
    },
    props: {
      categorysubdata: {
          type: Object,
          default() {
              return {}
          }
      }
    }
}
</script>

<style scoped>
.TabContentCategory-item{
  text-align: center;
  font-size: 12px;
}
.item-img{
  width: 80%;
  height: 80%;
}
.item-text{
  margin-top: 15px;
}
</style>